VT-d: fix TLB flushing in dma_pte_clear_one()
authorJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2013 12:55:55 +0000 (13:55 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Nov 2013 12:55:55 +0000 (13:55 +0100)
commit85c72f9fe764ed96f5c149efcdd69ab7c18bfe3d
tree8ba493a1582c77b6a1cb14dece1567bd0d19f755
parente02b14e531a95399fc9d8647ec3cc6f310a7d455
VT-d: fix TLB flushing in dma_pte_clear_one()

The third parameter of __intel_iommu_iotlb_flush() is to indicate
whether the to be flushed entry was a present one. A few lines before,
we bailed if !dma_pte_present(*pte), so there's no need to check the
flag here again - we can simply always pass TRUE here.

This is XSA-78.

Suggested-by: Cheng Yueqiang <yqcheng.2008@phdis.smu.edu.sg>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/drivers/passthrough/vtd/iommu.c